<!doctype html>
<html class="no-js" lang="zh">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">

<link rel="apple-touch-icon" href="apple-touch-icon.png">
<!-- Place favicon.ico in the root directory -->

<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/main.css">
<script src="js/modernizr-2.8.3.min.js"></script>
</head>
<body>
<!--[if lt IE 8]>
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
<![endif]-->

<!-- Add your site or application content here -->
<pre>


统一格式：
{
        code: 0成功，非0失败
        msg: 如果code非0，这里是失败理由
        result: {}或者[]，业务字段
}


---------登录接口：user/login     get请求
参数：username, password
返回：realname, company, sid

sid是登录凭证，之后所有接口都传入sid的值


---------注册接口：user/regist   get请求
参数：username, password, realname, company
返回：sid

---------添加任务（开始）   user/addTask   get
参数：
$sid = $request->input('sid');   ///登录时返回的
$taskId = $request->input('taskId');  ///空
$gongsi = $request->input('gongsi'); -------------UI输入
$stateName = $request->input('stateName');-----UI输入
$motorType = $request->input('motorType');-------------UI输入
$photo = $request->input('photo');--------------图片上传

----这四个定位获得
$city = $request->input('city');
$lat = $request->input('lat');
$lnt = $request->input('lnt');
$addr = $request->input('addr');


---------添加任务（结束）  user/addTask post
参数：
taskId
photo

----这四个定位获得
$city = $request->input('city');
$lat = $request->input('lat');
$lnt = $request->input('lnt');
$addr = $request->input('addr');


---------查询我的任务列表  user/listTask   get
参数：
pageNow   从0开始
$pageSize 要几条
sid


---------删除一条任务：user/deleteTask
get请求
参数：taskId   sid


--------------------
</pre>

<script src="http://libs.baidu.com/jquery/2.0.3/jquery.js"></script>
<script>window.jQuery || document.write('<script src="http://libs.baidu.com/jquery/2.0.3/jquery.js"><\/script>')</script>
<script src="js/plugins.js"></script>
<script src="js/main.js"></script>

<!-- Google Analytics: change UA-XXXXX-X to be your site's ID. -->
<script>
(function(b,o,i,l,e,r){b.GoogleAnalyticsObject=l;b[l]||(b[l]=
function(){(b[l].q=b[l].q||[]).push(arguments)});b[l].l=+new Date;
e=o.createElement(i);r=o.getElementsByTagName(i)[0];
e.src='//www.google-analytics.com/analytics.js';
r.parentNode.insertBefore(e,r)}(window,document,'script','ga'));
ga('create','UA-XXXXX-X','auto');ga('send','pageview');
</script>
</body>
</html>
